package com.ruoyi.sys.personnel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 人员管理/门禁设备管理/设置列表
 */
@Data
@TableName("tb_entrance_guard")
public class TbEntranceGuard {
    @TableId(value = "eg_id",type = IdType.AUTO)
    private Integer egId;
    @TableField("eg_sid")
    private String egSid;
    @TableField("eg_name")
    private String egName;
    @TableField("eg_state")
    private Integer egState;
    @TableField("eg_type")
    private Integer egType;
    @TableField("eg_model")
    private String egModel;
    @TableField("eg_brand")
    private String egBrand;
    @TableField("eg_location")
    private String egLocation;
    @TableField("eg_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date egDate;
    @TableField("eg_u_id")
    private Integer egUId;
    private User user;

    /**
     * 下面暂时用不到
     */
    @TableField("eg_r_id")
    private Integer egRId;
    @TableField("eg_r_discription")
    private String egRDiscription;
}
